
const headerMenuList = [
  {
    domainId: '1',
    icon: 'el-icon-picture',
    domainName: '供应链',
    domainDesc: '',
    sort: '',
    modules: []
  },
  {
    domainId: '2',
    icon: 'el-icon-picture',
    domainName: '综合',
    domainDesc: '',
    sort: '',
    modules: [
      {
        moduleId: '1',
        moduleName: 'ITMP系统'
      },
      {
        moduleId: '2',
        moduleName: 'OEC系统'
      },
      {
        moduleId: '3',
        moduleName: '很牛的系统'
      }
    ]
  },
  {
    domainId: '3',
    icon: 'el-icon-picture',
    domainName: '协同',
    domainDesc: '',
    sort: '',
    modules: []
  },
  {
    domainId: '4',
    icon: 'el-icon-picture',
    domainName: '机房',
    domainDesc: '',
    sort: '',
    modules: [
      {
        moduleId: '1',
        moduleName: 'oa办公测试'
      },
      {
        moduleId: '2',
        moduleName: '门店订单系统'
      },
      {
        moduleId: '3',
        moduleName: '物流系统'
      }
    ]
  },
  {
    domainId: '5',
    icon: 'el-icon-picture',
    domainName: '技术',
    domainDesc: '',
    sort: '',
    modules: []
  },
  {
    domainId: '6',
    icon: 'el-icon-picture',
    domainName: '制造',
    domainDesc: '',
    sort: '',
    modules: []
  },
  {
    domainId: '7',
    icon: 'el-icon-picture',
    domainName: '测试1',
    domainDesc: '',
    sort: '',
    modules: []
  },
  {
    domainId: '8',
    icon: 'el-icon-picture',
    domainName: '测试2',
    domainDesc: '',
    sort: '',
    modules: []
  }
]

const noticeList = [
  {
    id: '1',
    icon: '1',
    title: '你收到了8份时尚芭莎周年报',
    time: '2019/5/12 12:22:32'
  },
  {
    id: '2',
    icon: '2',
    title: '你收到了2份年终奖金发放通知',
    time: '2019/5/13 09:50:34'
  },
  {
    id: '3',
    icon: '3',
    title: '你收到了2份年终奖金发放通知',
    time: '2019/5/10 20:28:34'
  }
]

const latelyLinks = [
  {
    path: 'http://www.baidu.com',
    title: '菜单功能1'
  },
  {
    path: 'http://www.baidu.com',
    title: '菜单功能2'
  }
]

const favoriteLinks = [
  {
    path: 'http://www.baidu.com',
    title: '菜单功能1'
  },
  {
    path: 'http://www.baidu.com',
    title: '菜单2'
  }
]

export default [
  {
    url: '/domain/getUserDomainList',
    type: 'get',
    response: (req, res) => {
      return {
        success: 1,
        msg: '请求成功',
        data: {
          headerMenuList
        }
      }
    }
  },
  {
    url: '/menu/getRecentMenuList',
    type: 'get',
    response: (req, res) => {
      return {
        code: 0,
        msg: '请求成功',
        data: {
          latelyLinks
        }
      }
    }
  },
  {
    url: '/header/headerNotice',
    type: 'get',
    response: (req, res) => {
      return {
        code: 0,
        msg: '请求成功',
        data: {
          noticeList
        }
      }
    }
  },
  {
    url: '/menu/getCollectMenuList',
    type: 'get',
    response: (req, res) => {
      return {
        code: 0,
        msg: '请求成功',
        data: {
          favoriteLinks
        }
      }
    }
  }
]
